//
//  IMMessageModel.m
//  TQY
//
//  Created by 甘世清 on 2024/10/27.
//

#import "IMMessageModel.h"

@implementation IMMessageModel
 
+ (NSDictionary *)mj_replacedKeyFromPropertyName{
   return @{@"messageId": @"id"};
}

- (NSString *)messType{
    if ([self.type isEqualToString:@"0"]) {
        return @"text";
    } else  if ([self.type isEqualToString:@"1"]) {
        return @"img";
    } else  if ([self.type isEqualToString:@"2"]) {
        return @"document";
    } else  if ([self.type isEqualToString:@"3"]) {
        return @"voice";
    } else  if ([self.type isEqualToString:@"4"]) {
        return @"video";
    } else  if ([self.type isEqualToString:@"5"]) {
        return @"location";
    }
    return @"text";
}
 
@end
